package ch.unisi.inf.pfii.teamwhite.risk.buildings;

/**
 * 
 * @author Matteo Bellan: bellanm@lu.unisi.ch
 * @author Andrea Michelotti: micheloa@lu.unisi.ch
 * @author Ranganathan Ramasubramanian: ramasubr@lu.unisi.ch
 *
 */

import java.util.ArrayList;

import ch.unisi.inf.pfii.teamwhite.risk.core.Planet;

//This particular building gives a bonus each turn, depending on the number of neighbours planet
public final class TaxCenter extends Building {

	private final static String NAME = "Tax Center";

	public TaxCenter() {
		super(NAME);
	}
	
	public final int extraIncome(final ArrayList<Planet> neighbours) {
		int result = 0;
		for (Planet planet : neighbours) {
			result = result + (((planet.getMoney() * 10)) / 100);
		}
		return result;
	}
}